package org.ala.tiktools.rpc.msg.ack;

import org.ala.tiktools.rpc.msg.RpcMsg;
import org.ala.tiktools.rpc.msg.RpcMsgHead;
import org.ala.tiktools.rpc.msg.RpcMsgHeadTypeEnums;

import java.io.Serializable;

/**
 * @author ala
 * @date 2025-04-04 17:54
 */
public class RpcAckMsg extends RpcMsg<RpcAckMsg> implements Serializable {
    public final static long serialVersionUID = 1;


    /**
     *  返回值
     */
    protected RpcAckBody body;


    public static RpcAckMsg build() {return new RpcAckMsg().head(RpcMsgHead.build().type(RpcMsgHeadTypeEnums.ACK));}


    public RpcAckBody getBody() {
        return body;
    }

    public void setBody(RpcAckBody body) {
        this.body = body;
    }

    public RpcAckMsg body(RpcAckBody body) {
        setBody(body);
        return this;
    }
}
